package com.winhxd.b2c.common.domain.search.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("商品搜索查询参数")
@Data
public class ProductSearchParam {
    public enum SortType {
        SALES_DESC,
        PRICE_ASC,
        PRICE_DESC,
        TIME_DESC,
        NONE
    }

    @ApiModelProperty(value = "价格方案编号,不能为null", required = true)
    private Long priceProgramId;
    @ApiModelProperty("页号")
    private int pageNo = 1;
    @ApiModelProperty("每页条数")
    private int pageSize = 10;
    @ApiModelProperty("排序方式")
    private SortType sortType = SortType.NONE;
    @ApiModelProperty("搜索文本")
    private String searchText;
    @ApiModelProperty("一级分类Id")
    private List<Integer> categoryOneIdList;
    @ApiModelProperty("二级分类Id")
    private List<Integer> categoryTwoIdList;
    @ApiModelProperty("颜色规格Id")
    private List<Long> colorAttributeOptionIdList;
    @ApiModelProperty("大小规格Id")
    private List<Long> sizeAttributeOptionIdList;
    @ApiModelProperty("产品标签Id")
    private List<Long> tagIdList;
}
